import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import moment from 'moment'
import './style/iconfont/iconfont.css'
import 'jquery'
import _ from 'lodash';
import VDistpicker from 'v-distpicker'

Vue.component('v-distpicker', VDistpicker)

Vue.config.productionTip = false;

Vue.use(ElementUI);
Object.defineProperty(Vue.prototype, '$_', { value: _ });
//定义一个全局过滤器实现日期格式化
Object.defineProperty(Vue.prototype, '$moment', { value: moment });
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
